﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加页面</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    哈哈，这是我的测试页面
     
        <asp:GridView ID="GridView1" runat="server">
        </asp:GridView>
    </div>
    <h1>添加</h1>
    新闻标题：<asp:TextBox ID="tbxNewsTitle" runat="server" Width="178px"></asp:TextBox>
    <br />
    新闻内容：<asp:TextBox ID="tbxNewsData" runat="server" Height="118px" 
        TextMode="MultiLine" Width="178px"></asp:TextBox>
    <br />
    图片地址：<asp:TextBox ID="tbxNewsimg" runat="server" Width="178px"></asp:TextBox>
    <br />
    新闻类别：<asp:DropDownList ID="rblType" runat="server" Height="16px" 
        Width="184px">
        <asp:ListItem Selected=True Value=Newsletter>时事新闻</asp:ListItem>
        <asp:ListItem Value=Financial>财经新闻</asp:ListItem>
        <asp:ListItem Value=Fun>娱乐新闻</asp:ListItem>
        <asp:ListItem Value=Sports>体育新闻</asp:ListItem>
    </asp:DropDownList>
    <br />
    发布时间：<asp:TextBox ID="tbxNewsDate" runat="server" Width="178px"></asp:TextBox>
    <br />
    <asp:Button ID="btnInsert" runat="server" Text="添加" 
        onclick="btnInsert_Click" Width="67px" />
    <asp:Button ID="btnedit" runat="server" Text="编辑" onclick="btnedit_Click" 
        Width="67px" />
    </form>
</body>
</html>
